package com.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 *
 * @author by xionghaohua
 * @date 2021/2/22
 */
@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello() {
        return "hello spring boot";
    }

    @GetMapping("/error")
    public String error() {
        return "404 Not Found";
    }

}
